import request from '@/http/request'
// 福分列表
export const $scoreList = (params:any) => {
    return request.request({
      url: '/api/award/score',
      method: 'get',
      params: params
    })
  }

//   更改福分状态
export const $scoreState = (params:any) => {
    return request.request({
      url: '/api/award/score/state',
      method: 'put',
      params: params
    })
  }
//   删除福分
export function $scoreDelete(scoreId:any) {
  return request.request({
    url: '/api/award/score',
    method: 'delete',
    data: { scoreId },
  })
}

// 福分新增OR修改  新增（POST）  修改（PUT）
export function $scoreAddOrEdit(method:any,data:any) {
  return request.request({
    url: '/api/award/score',
    method,
    data,
  })
}

// 查看福分详情

export function $scoreDetailt(params:any) {
  return request.request({
    url: '/api/award/score/detail',
    method:'get',
    params:params
  })
}
